package com.gxa.service.shezhiservice;

import com.gxa.common.R;
import com.gxa.pojo.ShangPin_SheZhi;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author weishen
 */
public interface ShangPinService {
    R selectAllShangPin();
    int selectCountShangPin();
    int selectCountAnyShangPin(String shangPinBianHao, String shangPinMingCheng, String guiGeXingHao);
    R selectAllShangPinForPage(int page, int size);
    R selectShangPinByBianHaoOrMingChengOrGuiGeXingHao(int page,  int size, String shangPinBianHao, String shangPinMingCheng, String guiGeXingHao);

    R updateShangPinById(ShangPin_SheZhi shangPin);

    R insertShangPin(ShangPin_SheZhi shangPin);

    R  deleteShangPinById(ArrayList<Integer> id);
}
